createMouseEvent

abstract fun createMouseEvent(eventType: EventType, params: MouseEventParams): MouseEvent

Creates and returns a new MouseEvent object with the given eventType and params.

Return

a new MouseEvent object

Parameters

eventType

an EventType object representing a type of a valid DOM event supported by engine

params

an MouseEventParams object representing mouse event properties

Throws

if the event creation failed due to the invalid event params

when the document is closed